package com.sc.nft.service;


import com.sc.nft.entity.MallPreferenceActivity;
import com.sc.nft.entity.dto.MallPreferenceActivityAdminDTO;
import com.sc.nft.entity.vo.MallPreferenceActivityAdminVO;
import com.sc.nft.entity.vo.MallPreferenceActivityVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * <p>
 * 好物优选 服务类
 * </p>
 *
 * @author author
 * @since 2024-03-08
 */
public interface MallPreferenceActivityService {

    /**
     * 添加好物优选
     *
     * @param mallPreferenceActivityVO
     */
    void add(MallPreferenceActivityVO mallPreferenceActivityVO);

    /**
     * 移除好物优选
     *
     * @param id
     */
    void remove(Long id);

    /**
     * 修改好物优选上架状态
     *
     * @param id
     * @param status
     */
    void updateStatus(Long id, Boolean status);

    /**
     * 修改好物优选排序
     *
     * @param id
     * @param sort
     */
    void updateSort(Long id, Integer sort);

    /**
     * 获取好物优选列表
     *
     * @param mallPreferenceActivityAdminVO
     * @return
     */
    Page<MallPreferenceActivityAdminDTO> pageAdmin(MallPreferenceActivityAdminVO mallPreferenceActivityAdminVO);

    /**
     * 获取好物优选
     * @param activityId
     * @return
     */
    MallPreferenceActivity getByActivityId(Long activityId);

    /**
     * getById
     * @param id
     * @return
     */
    MallPreferenceActivity getById(Long id);


    void test();
}
